﻿<%@ Page Title="" Language="C#" MasterPageFile="/Common/Master.master" %>

<script runat="server">

</script>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentForm" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentHtml" runat="Server">
    <div id="toolBar" style="display: none;">
        <div id="toolbarAdd" style="display: none;" data-options="iconCls:'icon-table_add',plain:'true'" class="easyui-linkbutton" onclick="$.fn.DataGrid.Insert(obj)">添加</div>
        <div id="toolbarEdit" style="display: none;" data-options="iconCls:'icon-table_edit',plain:'true'" class="easyui-linkbutton" onclick="$.fn.DataGrid.Update(obj)">修改</div>
        <div id="toolbarDelete" style="display: none;" data-options="iconCls:'icon-table_delete',plain:'true'" class="easyui-linkbutton" onclick="$.fn.DataGrid.Delete(obj)">删除</div>
        <div id="toolbarSearchtext"></div>
    </div>
    <div id="page"></div>
    <table id="dg1" style="display: none;">
        <thead>
            <tr>
                <th data-options="field: 'ControllerName',width: 150">控制器名称</th>
                <th data-options="field: 'ActionName',width: 150">方法名称</th>
                <th data-options="field: 'ActionDescription',width: 150">方法描述</th>
                <th data-options="field: 'ActionParameters',width: 150">请求参数</th>
                <th data-options="field: 'ActionUrl',width: 150"></th>
                <th data-options="field: 'ExecTime',width: 150">执行时间(毫秒)</th>
                <th data-options="field: 'ResultValue',width: 150">返回值</th>
                <th data-options="field: 'Error',width: 150">错误信息</th>
                <th data-options="field: 'IP',width: 150">ip</th>
                <th data-options="field: 'BrowserVersion',width: 150">浏览器版本</th>
                <th data-options="field: 'Method',width: 150">请求方式</th>
                <th data-options="field: 'AddTime',width: 150,formatter:function(val,rec){ return $.DateFormat(val, 'yyyy-MM-dd HH:mm:ss'); }">创建时间</th>
                <th data-options="field: 'AddUserID',width: 150">创建人ID</th>
                <th data-options="field: 'OrgID',width: 150">组织机构ID</th>

            </tr>
        </thead>
    </table>

    <script type="text/javascript">
        var obj;
        $(function () {
            obj = {
                id: "dg1",
                key: "ID",
                url: "Api/V1/System_Log/GetPagesLog", 
                deleteUrl: "Api/V1/System_Log/DeleteLog", 
                data: {},

                //title: "系统日志管理",
                dialogName: "系统日志管理",
                dialogWidth: Cookies.get('DialogWidth') + "px",
                dialogHeight: Cookies.get('DialogHeight') + "px",
                editUrl: "edit.aspx",
                detailsUrl: "details.aspx",
                toolBar: '#toolBar',
                footer: '#page',
                callback: function () { $.fn.DataGrid.onRefresh(obj); }
            };
            $.fn.DataGrid.DataBind(obj);
        });
    </script>
</asp:Content>

